package com.niit.onlinemusicserver34.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.niit.onlinemusicserver34.common.R;
import com.niit.onlinemusicserver34.mapper.BannerMapper;
import com.niit.onlinemusicserver34.model.domain.Banner;
import com.niit.onlinemusicserver34.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BannerServiceImpl extends ServiceImpl<BannerMapper, Banner> implements BannerService {

    @Autowired
    private BannerMapper bannerMapper;


    @Override
    public R getAllBanner() {
        return R.success("查询成功",bannerMapper.selectList(null));
    }
}